<?php

/**
 * ECSHOP 权限对照表
 *
 * @author iceman
*/

if (!defined('IN_ECS'))
{
    die('Hacking attempt');
}

//商品管理权限
    $purview['01_goods_list']        = array('goods_manage', 'remove_back');
    $purview['02_goods_add']         = 'goods_manage';
    $purview['03_category_list']     = array('cat_manage', 'cat_drop');
    $purview['06_goods_brand_list']  = 'brand_manage';
    $purview['08_goods_type']        = 'attr_manage';
    $purview['11_goods_trash']       = array('goods_manage', 'remove_back');

//文章管理权限
    $purview['02_articlecat_list']   = 'article_cat';
    $purview['03_article_list']      = 'article_manage';

//定制功能
    $purview['01_index_customize']   = 'index_customize';

//权限管理
    $purview['admin_list']           = array('admin_manage', 'admin_drop', 'allot_priv');
    $purview['admin_role']           = 'role_manage';

//商店设置权限
    $purview['01_shop_config']       = 'shop_config';
    $purview['04_mail_settings']     = 'shop_config';
    $purview['05_area_list']         = 'area_manage';
    $purview['08_friendlink_list']   = 'friendlink';
    $purview['sitemap']              = 'sitemap';
    $purview['captcha_manage']       = 'shop_config';
    $purview['navigator']            = 'navigator';

//广告管理
    $purview['ad_position']          = 'ad_manage';
    $purview['ad_list']              = 'ad_manage';

//模板管理
    $purview['02_template_select']   = 'template_select';
    $purview['mail_template_manage'] = 'mail_template';

//数据库管理
    $purview['02_db_manage']         = array('db_backup', 'db_renew');
    $purview['03_db_optimize']       = 'db_optimize';
    $purview['04_sql_query']         = 'sql_query';

?>